home *** CD-ROM | disk | FTP | other *** search
- /*
- File: MovieShell.c
-
- Contains: Simple Mac shell for testing QuickTime.
-
- Written by: DTS
-
- Copyright: © 1994-1995 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <1> 12/20/94 khs first file
-
- */
-
-
- // INCLUDES
- #include <stdio.h>
- #include <sioux.h>
-
- #include "DTSQTUtilities.h"
- #include "MacFramework.h"
-
-
- // ______________________________________________________________________
- // MAIN
- void main(void)
- {
- OSErr anErr;
-
- // This is for controlling the sioux window under Metrowerks (5.0 forward)
- #ifdef USESIOUX
- SIOUXSettings.initializeTB = false;
- SIOUXSettings.setupmenus = false;
- SIOUXSettings.standalone = false;
- SIOUXSettings.asktosaveonclose = true;
- #endif // USESIOUX
-
- InitStack(30000);
- InitMacEnvironment(10L); // 10 * MoreMasters
- InitMenubar();
-
- if( !QTUIsQuickTimeInstalled() )
- ExitToShell();
-
- #if powerc
- if( !QTUIsQuickTimeCFMInstalled() )
- ExitToShell(); // I could disable features as well.
- #endif
-
- anErr = EnterMovies(); DebugAssert(anErr == noErr);
- if(anErr != noErr)
- ExitToShell();
-
- MainEventLoop();
- }
-